package com.rth.oss.controller;

import com.rth.oss.util.MinioUtil;
import lombok.SneakyThrows;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class FileController {
    @Resource
    private MinioUtil minioUtil;
//    @SneakyThrows
    @RequestMapping("/test")
    public String test() throws Exception {
        return minioUtil.getAllBucket().get(0);
    }
}
